package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Address implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer addressId; //地址编号
    private Integer userId; //用户编号

    private String phoneNumber; //手机号
    private String name; // 收货人名
    private String region; //省份
    private String detail; //地址详情
    private Integer isDefault; //是否为默认地址

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
